//
//  LBGaussianBLurFilter.h
//  OpenGLGame
//
//  Created by Nguyen Cong Huy on 2/27/13.
//  Copyright (c) 2013 UIT. All rights reserved.
//

#ifndef OpenGLGame_LBGaussianBLurFilter_h
#define OpenGLGame_LBGaussianBLurFilter_h

#include "LBTwoPassTextureSamplingFilter.h"

class LBTexture;

class LBGaussianBlurFilter: public LBTwoPassTextureSamplingFilter {
    float blurSize;
    GLuint horizontalBlurSizeUniform, verticalBlurSizeUniform;
public:
    LBGaussianBlurFilter(char* firstStageVertexShaderString, char* firstStageFragmentShaderString, char* secondStageVertexShaderString, char* secondStageFragmentShaderString);
    LBGaussianBlurFilter();
    void setBlurSize(float blurSize);
    float getBlurSize();
protected:
    void init(char* firstStageVertexShaderString, char* firstStageFragmentShaderString, char* secondStageVertexShaderString, char* secondStageFragmentShaderString);
};

#endif
